Skip to content

resolve-shims: prevent prototype manipulation#246

Merged
bendrucker merged 1 commit into
masterfrom
resolve-shims-prototype
Oct 14, 2022
Merged

resolve-shims: prevent prototype manipulation#246
bendrucker merged 1 commit into
masterfrom
resolve-shims-prototype

Conversation

@bendrucker
Copy link
Copy Markdown
Collaborator

Prevents prototype manipulation in the separateExposeGlobals function. The supplied shims are parsed from JSON and could in theory contain a __proto__ key. It is not clear that this is even exploitable to manipulate the any behavior of exposeGlobals, let alone the global object prototype.

Nevertheless, out of an abundance of caution, this forbids passing __proto__ or constructor as shims.

Closes #245

@bendrucker bendrucker merged commit 97855e6 into master Oct 14, 2022
@bendrucker bendrucker deleted the resolve-shims-prototype branch October 14, 2022 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CVE-2022-37617/ Prototype pollution found in resolve-shims.js

1 participant